package com.greyu.ysj.service;

import java.util.List;

import com.greyu.ysj.entity.CbtExchange;
import com.greyu.ysj.model.ResultModel;

public interface CbtExchangeService {

	ResultModel save(CbtExchange cbtExchange);
	//用户兑换记录
	List<CbtExchange> selectExchangeRecordByuserId(Integer page, Integer rows,Integer userId);
	
	int totalPages(Integer userId,Integer rows);
	
	int selectMaxExchangeId();
	
	CbtExchange selectCbtExchangeById(Integer id);
	
	ResultModel updateCbtExchange(Integer id, CbtExchange cbtExchange);
	//交易hash是否在表中进行存在
	boolean isHashExist(String hash);
	
	List<CbtExchange> selectAll(CbtExchange cbtExchange);
	
	double selectTotalExchangeByuserId(int userId);
}
